package com.cmsky.open.core.base;

import java.util.List;

public class BasePager<T> {
	private List<T> rows;
	private Integer total;
	private Integer page;
	private Integer pagesize;
	/**
	 * 
	 * @param rows
	 * @param total
	 * @param page
	 * @param pagesize
	 */
	public BasePager(List<T> rows, Integer total, Integer page,
			Integer pagesize) {
		super();
		this.rows = rows;
		this.total = total;
		this.page = page;
		this.pagesize = pagesize;
	}
	
	public List<T> getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getPagesize() {
		return pagesize;
	}
	public void setPagesize(Integer pagesize) {
		this.pagesize = pagesize;
	}
	@Override
	public String toString() {
		return "Pager [rows=" + rows + ", total=" + total + ", page="
				+ page + ", pagesize=" + pagesize + "]";
	}
}
